package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.YyProjectQrsk;
import com.ruoyi.gcgl.mapper.YyProjectQrskMapper;
import com.ruoyi.gcgl.service.IYyProjectQrskService;

/**
 * 确认收款Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-02
 */
@Service
public class YyProjectQrskServiceImpl implements IYyProjectQrskService 
{
    @Autowired
    private YyProjectQrskMapper gcProjectQrskMapper;

    /**
     * 查询确认收款
     * 
     * @param id 确认收款主键
     * @return 确认收款
     */
    @Override
    public YyProjectQrsk selectGcProjectQrskById(Long id)
    {
        return gcProjectQrskMapper.selectGcProjectQrskById(id);
    }

    /**
     * 查询确认收款列表
     * 
     * @param gcProjectQrsk 确认收款
     * @return 确认收款
     */
    @Override
    public List<YyProjectQrsk> selectGcProjectQrskList(YyProjectQrsk gcProjectQrsk)
    {
        return gcProjectQrskMapper.selectGcProjectQrskList(gcProjectQrsk);
    }

    /**
     * 新增确认收款
     * 
     * @param gcProjectQrsk 确认收款
     * @return 结果
     */
    @Override
    public int insertGcProjectQrsk(YyProjectQrsk gcProjectQrsk)
    {
        return gcProjectQrskMapper.insertGcProjectQrsk(gcProjectQrsk);
    }

    /**
     * 修改确认收款
     * 
     * @param gcProjectQrsk 确认收款
     * @return 结果
     */
    @Override
    public int updateGcProjectQrsk(YyProjectQrsk gcProjectQrsk)
    {
        return gcProjectQrskMapper.updateGcProjectQrsk(gcProjectQrsk);
    }

    /**
     * 批量删除确认收款
     * 
     * @param ids 需要删除的确认收款主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectQrskByIds(String ids)
    {
        return gcProjectQrskMapper.deleteGcProjectQrskByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除确认收款信息
     * 
     * @param id 确认收款主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectQrskById(Long id)
    {
        return gcProjectQrskMapper.deleteGcProjectQrskById(id);
    }
}
